package com.orion.app.domain.entity;

import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
@RooJpaEntity(sequenceName = "emp_qual_seq")
public class EmployeeQualification {

    @NotNull
    @ManyToOne
    private EmployeeDetails employee;

    @ManyToOne
    private Qualification qualification;

    @Size(max = 200)
    private String institute;

    @Size(max = 200)
    private String address;

    @Size(max = 4)
    private String yearOfPassing;

    @Size(max = 100)
    private String division;

    @Size(max = 5)
    private String percentage;

    @ManyToOne
    private Qualification majorQualification;
}
